package edu.zut.cs.software.estateagent.notice.domain;



import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_Announcement")// 声明数据库表名
@Entity// 声明持久化类

public class Announcement extends BaseEntity {
	private static final long serialVersionUID = -4393345977047234142L;// 生成序列化ID，防止反序列化失败
	private Long id;           //公告栏号
	private double time;       //公告时间
	private String world;      //公告内容
	private double board;      //公告宽度
	private double length;     //公告长度
	
	@GeneratedValue(strategy = GenerationType.AUTO)// 主键生成方式
	@Id// 主键映射属性
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public double getTime() {
		return time;
	}
	public void setTime(double time) {
		this.time = time;
	}
	public String getWorld() {
		return world;
	}
	public void setWorld(String world) {
		this.world = world;
	}
	public double getBoard() {
		return board;
	}
	public void setBoard(double board) {
		this.board = board;
	}
	public double getLength() {
		return length;
	}
	public void setLength(double length) {
		this.length = length;
	}
}